package com.yuanjun.product.dao;

import com.yuanjun.product.entity.JczOrder;
import com.yuanjun.product.entity.JczOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yuanjun.product.vo.req.ReqOrderManageVo;
import com.yuanjun.product.vo.resp.RespConfirmOrderVo;
import com.yuanjun.product.vo.resp.RespOrderDetailsVo;
import com.yuanjun.product.vo.resp.RespOwnOrderListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface JczOrderMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    long countByExample(JczOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int deleteByExample(JczOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int insert(JczOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int insertSelective(JczOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    List<JczOrder> selectByExample(JczOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    JczOrder selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") JczOrder record, @Param("example") JczOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") JczOrder record, @Param("example") JczOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(JczOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jcz_order
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(JczOrder record);

    // 后台订单列表
    List<RespOrderDetailsVo> selectOrderDetailList(ReqOrderManageVo reqOrderManageVo);
    Long selectOrderDetailCount(ReqOrderManageVo reqOrderManageVo);
    // 当日订单数量
    Long selectNowDayOrderNumber();

    List<JczOrder> selectNowDayOrderAllMoney();

    RespConfirmOrderVo getOrderList(Integer orderId);

    List<RespOwnOrderListVo> ownOrderList(Map<String, Object> params);

    Long ownOrderListCount(Map<String, Object> params);
}